Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

snap: add snap manifest #3723

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

soumyaDghosh
Copy link

  • PR Description

Adds the snap package manifest

  • Please check if the PR fulfills these requirements
  • Cheatsheets are up-to-date (run go generate ./...)
  • Code has been formatted (see here)
  • Tests have been added/updated (see here for the integration test guide)
  • Text is internationalised (see here)
  • Docs have been updated if necessary
  • You've read through your own file changes for silly mistakes etc

There is a package for lazygit in the snap store, but that's old and seems to be unmaintained. It'd be great if lazygit can be updated and upstreamed. Thanks!

@ecruzolivera
Copy link

Hello, I'm extremely interested in this, is there any chance that this can be accepted? I have experience with snaps, and I'm willing to help if needed.

Copy link
Owner

@jesseduffield jesseduffield left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments

- https://discord.gg/ehwFt2t4wt
- https://twitter.com/DuffieldJesse
donation:
- https://github.com/jesseduffield
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd just add a single URL link: https://github.com/sponsors/jesseduffield

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's the same thing, but no problem I'll change it.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be clear I meant to remove the donorbox link

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I missed the donation link. I'll fix it.

adopt-info: lazygit
summary: simple terminal UI for git commands
description: A simple terminal UI for git commands, written in Go with the gocui library.
version: '0.42.0'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this something I should be bumping whenever I do a release or is this depending on whoever manages the snap entity?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's completely up to you, you can simply set the latest release tag number as the version, or you can follow something completely different.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

generally, what I do is, I set the version as the release numbers.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not quite following. What are our options? Are we able to:

  1. remove this line completely?
  2. have it dynamically set somehow

I would prefer not to have to update this file each time I release.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we can do that too. How would you like to update it? Following the latest tag or what?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's right: following the latest tag of the form vX.Y.Z

build-snaps:
- go
build-attributes:
- enable-patchelf
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please explain what this patchelf thing does.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because this snap will be a classic snap, there will no confinement for this snap working. So, this snap will be mounted in the usr namespace, and thus the rpaths might point to libraries from your system. patchelf is used to patch those elf-interpretors to point towards proper rpaths of the libraries shipped by the snap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants